class InfoUpdateBean {
  String description;
  int contri;

  static InfoUpdateBean fromMap(Map<String, dynamic> map) {
    InfoUpdateBean infoUpdateBean = new InfoUpdateBean();
    infoUpdateBean.description = map['description'];
    infoUpdateBean.contri = map['contri'];
    return infoUpdateBean;
  }

  static List<InfoUpdateBean> fromMapList(dynamic mapList) {
    List<InfoUpdateBean> list = List.filled(mapList.length, null);
    for (int i = 0; i < mapList.length; i++) {
      list[i] = fromMap(mapList[i]);
    }
    return list;
  }
}
